Fixing check_snmp_cisco_ifstatus

I’ll flesh this out later, but if you are having problems with the check_snmp_cisco_ifstatus plugin for nagios, and you are getting errors like the one below, you need to make a couple of tweaks.

**ePN failed to compile /usr/lib64/nagios/plugins/check_snmp_cisco_ifstatus: Global symbol script requires explicit package name at (eval 7) line 30,

Right after the line that reads use Getopt::Std; you need to add the following three statements:

my ($oid_sysDescr,$community,$s,$e,$oid_temp,
$temp_interface_descr,$errorstring,$temp,$index,
$configfilepath,$hostname,$script,$script_version,
$critical,$ifadminstatus,$ifdescr,$ifinerrors,$iflastchange,
$ifmtu,$ifoperstatus,$ifoutbitssec,$ifouterrors,$ifoutqlen,
$ifphysaddress,$ifspeed,$iftype,$number_of_interfaces,
$oid_ifadminstatus,$oid_ifdescr,$oid_ifinerrors,
$oid_iflastchange,$oid_ifmtu,$oid_ifnumber,
$oid_ifoperstatus,$oid_ifouterrors,$oid_ifoutqlen,
$oid_ifphysaddress,$oid_ifspeed,$oid_iftype,
$oid_locIfIntBitsSec,$oid_locIfOutBitsSec,$oid_sysdescr,
$returnstring,$status,$target_interface,
$target_interface_index,$timeout,$version,$warning);

our ($opt_c,$opt_C,$opt_h,$opt_H,$opt_w,$opt_i);

$status=0;

The short story is that Nagios has moved to used re-compiled perl, and as a security feature they insert several strictness policies regarding variable handling. You can disable this via nagios.cfg in version 3.0, but config template for 2.0 doesn’t have this option and I haven’t had a chance to try the setting anyways just to see what happens.

Verbose documentation regarding how this affects your plugins can be found here:

Nagios 2.x
Nagios 3.x

[ad#adsense-horizontal]

So much for maternal instinct…

Even if Hillary Clinton’s recollection of her trip to Bosnia was factually correct, it really doesn’t paint her in happy colors. She was moved to the cockpit, and everyone else had to sit on their bulletproof vests. She left her daughter in the less armored part of the plane? Really? A true politician, even then; as she was willing to sacrifice her own young…

Clinton recalls Bosnia trip as dangerous – Boston.com
Clinton described her trip to Bosnia on Monday during a speech about Iraq in Washington. She said: “I remember landing under sniper fire. There was supposed to be some kind of a greeting ceremony at the airport, but instead we just ran with our heads down to get into the vehicles to get to our base.”

Questioned about it later at a news conference, Clinton said she was moved into the cockpit of the C-17 cargo plane as they were flying into Tuzla Air Base, Bosnia-Herzegovina. “Everyone else was told to sit on their bulletproof vests,” she said. “And we came in, in an evasive maneuver. … There was no greeting ceremony, and we basically were told to run to our cars. Now, that is what happened.”

[ad#adsense-horizontal]

Misspoke: doublespeak for ‘lying her ass off’

If lying can get a (Democratic) president into impeachment hearings, can’t it get another one out of the race for president?

Clinton Misspoke on Bosnia Trip
By ANN SANNER, Associated Press Writer
Monday, March 24, 2008
03-24 15:07 PDT WASHINGTON, AP —

Hillary Rodham Clintons campaign said she “misspoke” last week when she said she had landed under sniper fire during a trip she took as first lady to Bosnia in March 1996. The Obama campaign suggested it was a deliberate exaggeration on Clintons part.

Clinton often cites the goodwill trip she took with her daughter and several celebrities as a part of her foreign policy experience.

During a speech last Monday about Iraq, she said of the trip: “I remember landing under sniper fire. There was supposed to be some kind of a greeting ceremony at the airport, but instead we just ran with our heads down to get into the vehicles to get to our base.”

According to an AP story at the time, Clinton was placed under no extraordinary risks on that trip. And one of her companions on it, comedian Sinbad, told The Washington Post he has no recollection either of the threat or reality of gunfire.

[ad#adsense-horizontal]

I use Amazon affiliate links in some of my posts. I think it is fair to say my writing is not influenced by the $0.40 I earned in 2022.